Interface sjl.Container
All Packages Class Hierarchy This Package Previous Next Index
Interface sjl.Container
- public interface Container
- extends Object
Defines the methods allowed on all container types. This is the absolute
minimum set of operations that all container types must support.
Copyright © 1996 Finn Bock
- See Also:
- List, Vector, Deque, Array, Set, MultiSet, Map, MultiMap
-
beginGeneric()
- Return an iterator that points to the beginning of the container.
-
empty()
- Return
true
of the container does not contain any elements.
-
endGeneric()
- Return an iterator that points past the end of the container.
-
equals(Object)
- Compare the elements in this container with the elements
in another container.
-
flush()
-
Erase all elements in the container.
-
max_size()
- Return the size of the largets possible container.
-
size()
- Return the number of element that the container contains.
flush
public abstract void flush()
- Erase all elements in the container.
equals
public abstract boolean equals(Object container)
- Compare the elements in this container with the elements
in another container.
- Returns:
-
true
is the elements match.
- Overrides:
- equals in class Object
beginGeneric
public abstract ForwardIterator beginGeneric()
- Return an iterator that points to the beginning of the container.
endGeneric
public abstract ForwardIterator endGeneric()
- Return an iterator that points past the end of the container.
size
public abstract int size()
- Return the number of element that the container contains.
empty
public abstract boolean empty()
- Return
true
of the container does not contain any elements.
max_size
public abstract int max_size()
- Return the size of the largets possible container.
All Packages Class Hierarchy This Package Previous Next Index